#pragma once 

#include <Renderable.hpp>

class TSprite2D : public TRenderable
{
	IDKClass;
private:
	Math::Rect mRect;
public:
	TSprite2D(const Math::Rect& rect = Math::Rect::Identity) : mRect(rect)
	{
	}

	virtual bool Render(IDK::IRenderState& rndState)
	{
		bool result = TRenderable::Render(rndState);
		rndState.DrawRect(mRect);
		return result;
	}
};

typedef ref<TSprite2D> Sprite2D;